<%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="app/easyui/themes/black/easyui.css">
        <link rel="stylesheet" type="text/css" href="app/easyui/themes/icon.css">
        <link rel="stylesheet" type="text/css" href="css/bootstrap.simple.css">
        <script type="text/javascript" src="app/easyui/jquery.min.js"></script>
        <script type="text/javascript" src="app/easyui/jquery.easyui.min.js"></script>
        <script type="text/javascript" src="app/application.js"></script>
        <script type="text/javascript">
			$(function(){
				window.parent.HLplugin.changeProcessorCfgScreen('halfscreen');
			});
		</script>
    </head>
    <body >
        <div id="attribute-updater-processor-id" style="display:none;"><%= request.getParameter("id") == null ? "" : org.apache.nifi.util.EscapeUtils.escapeHtml(request.getParameter("id")) %></div>
        <div id="attribute-updater-client-id" style="display:none;"><%= request.getParameter("clientId") == null ? "" : org.apache.nifi.util.EscapeUtils.escapeHtml(request.getParameter("clientId")) %></div>
        <div id="attribute-updater-revision" style="display:none;"><%= request.getParameter("revision") == null ? "" : org.apache.nifi.util.EscapeUtils.escapeHtml(request.getParameter("revision")) %></div>
        <div id="attribute-updater-editable" style="display:none;"><%= request.getParameter("editable") == null ? "" : org.apache.nifi.util.EscapeUtils.escapeHtml(request.getParameter("editable")) %></div>
    
        <form id="fm" method="post" data-options="novalidate:true" >
            <div class="row">
                <div class="col-md-12">
                	<div class="form-group clearfix">
                        <label class="col-md-12">任务内名称</label>
                        <div class="col-md-12">
                            <div class="input-group">
                                <input id="processorName" class="form-control" type="text">
                                <span class="input-group-btn">
									<button id="changeName" class="btn btn-ok" type="button">更改</button>
								</span>
                            </div>
                        </div>
                    </div>

                    <div class="form-group clearfix">
                        <label class="col-md-12">能力序号</label>
                        <div class="col-md-12">
                        	<div class="form-control-static"><%= request.getParameter("id") == null ? "" : org.apache.nifi.util.EscapeUtils.escapeHtml(request.getParameter("id")) %></div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div id='ruleListDiv' class="row" style='margin-top:20px'>
            	<div class="col-md-12" style='padding-left: 10px'>
					<table style='width:650px' class='tableDate'>
					   <tr>
						 <td>
						  	 如果: <input name='ifField' class="form-control" type='text' style='width:200px; display: inline;' placeholder='请输入字段名称（英文）'>  
						   	<select id='ifRule' class="easyui-combobox" style='width:80px;' >  
								<option value='contains' >包含</option>  
						   	</select>  
						 </td>
						 <td style='border-left-style:none' >
						   <input name='ifVal' class="form-control" type='text' style='width:280px' placeholder='多个请用英文逗号分隔，之间为[或]关系'>  
						 </td>
					   </tr>
					   <tr>
						 <td style='width:320px;'>
						   	那么: <input name='thenField' type='text' class="form-control" style='width:200px; display: inline;' placeholder='请输入字段名称（英文）'>  
							<select id='thenRule' class="easyui-combobox" style='width:80px;'>  
								<option value='equals' selected>等于</option>  
								<option value='replace' >替换</option>  
							</select>  
						 </td>
						 <td name='thenValTd'>
						 	<input name='thenVal' type='text' class="form-control" style='width:280px' placeholder=''>  
						 </td>
					   </tr>
					</table>
				</div>
			</div>
			<div class="row" style='margin-top:20px'>
            	<div class="col-md-12" style='padding-left: 10px'>
            		<input type='button' value='保存' class="btn btn-ok" onclick='save()'>
					<span id='retValue' style='margin-left:20px; color:red'></span>
           		</div>
            </div>	
			
        </form>
    </body>
</html>